package bankapplication.com.acme.exceptions;

public class OverDraftLimitExceededException extends NotEnoughFundsException {
  private double balance;
  private double overdraft;
  public OverDraftLimitExceededException(double balance, double overdraft){
    this.balance = balance;
    
    this.overdraft = overdraft;
  }
  public double getBalance(){
    return balance;
  }
  public double getMaxPossiblePayout(){
    return balance + overdraft;
  }
}